<template>
  <el-row>
    <p>验证js同步异步</p>
  </el-row>
</template>
<script>
export default {
  data() {
    return {

    }
  },
  mounted() {
    this.loadPage();
  },
  methods: {
    loadPage() {
      for (let i = 0; i < 4; i++) {
        console.log(1);
      }
      this.tongBu(1, 2);
    },
    tongBu(a, b) {
      console.log('验证js是同步任务');
      console.log(a, b)
    }
  },
}
</script>
